import axios from '../axios'

//登录
export function login(from){
   return axios.post('/admin/login',{
       'username': from.username,
       'password': from.password
    })
}

//管理员信息和菜单
export function getinfo(){
    return axios.post('/admin/getinfo')
}